<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	
	      <p style="color: red;"><b>桂花</b></p >
	
	</body>
	
	<script>
	
	      var p1=document.getElementsByTagName('p');
	
	      document.write(p1[0].innerText+p1[0].style.color);
	
	</script>
</html>